package br.com.estrategos.facade;

import java.io.Serializable;
import java.util.List;

import org.hibernate.HibernateException;

public interface IBaseFacade<T, I extends Serializable> {
	
	public T salvar(T entity) throws HibernateException,Exception;

	public void remover(T entity)throws HibernateException,Exception;;
	
	public void removerPorId(Class<T> classe,Long id)throws HibernateException,Exception;;

	public T buscaPorId(Class<T> classe, I pk)throws HibernateException,Exception;;

	public List<T> buscaTodos(Class<T> classe,String argOrdena)throws HibernateException,Exception;;


}
